import request from "../request";

/**
 * 获取当前榜单的内容
 * @param {*} id 榜单id
 * @returns
 */
export const getRankingList = (id, limit) => {
  return request.get("/playlist/track/all", {
    params: {
      id,
      limit,
    },
  });
};

/**
 * 获取歌曲的url
 * @param {*} id
 * @returns
 */
export const getSongUrlApi = (id) => {
  return request.get("/song/url", {
    id,
  });
};
